// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import './assets/styles/reset.css'
import './assets/styles/common.less'
import './assets/styles/skin.less'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/styles/iconfont.css'
import 'flex.css'
import './assets/styles/public.less'
import base from './assets/scripts/base/base'
import $ from 'jquery'
import store from './store'
import axios from 'axios'
import echarts from 'echarts'

axios.defaults.withCredentials = true

Vue.config.productionTip = false
Vue.use(ElementUI)

Vue.prototype.$base = base()
Vue.prototype.$http = axios
Vue.prototype.$echarts = echarts

window.$ = window.jQuery = $
// Vue.mixin(base());

/* eslint-disable no-new */

// 1. runtime-compiler
// new Vue({
//   el: '#app',
//   router,
//   store,
//   components: { App },
//   template: '<App/>'
// })

// 2. runtime-only
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
